package com.huajiao.management_system.util;

import java.util.LinkedList;
import java.util.List;

/**
 * List合并工具
 */
public class mergeListUtil {
    private List mergeList;
    private List list;
    private List list1;
    private List list2;
    private List list3;
    private List list4;

    public mergeListUtil(List list, List list1, List list2, List list3, List list4) {
        this.list = list;
        this.list1 = list1;
        this.list2 = list2;
        this.list3 = list3;
        this.list4 = list4;
    }

    public  List getMergeList() {
        mergeList = new LinkedList();
        if (list != null) {
            mergeList.addAll(list);
        }
        if (list1 != null) {
            mergeList.addAll(list1);
        }
        if (list2 != null) {
            mergeList.addAll(list2);
        }
        if (list3 !=null) {
            mergeList.addAll(list3);
        }
        if (list4 != null) {
            mergeList.addAll(list4);
        }
        return mergeList;
    }


}
